package com.amsp.oa.oademo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;

@Data
@TableName("payment_proof")
public class PaymentProof {
    @TableId(type = IdType.AUTO)
    private Long id;

    private String departmentCode;
    private String departmentName;
    private Integer statisticsYear;
    private Integer statisticsMonth;
    private Integer statisticsDay;
    private BigDecimal totalAmount;
    private String totalAmountWords;
    private String approver;
    private String reviewer;
    private String departmentApprover;
    private String applicant;
    private String reviewer2;
    private String formMaker;
    private String cashier;
    private String recipient;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    @TableLogic
    private Boolean isDeleted;
}